package com.senven.common.user.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.senven.common.entity.User;
import com.senven.common.user.vo.UserVo;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


@Mapper
public interface UserMapper extends BaseMapper <User>{

   List<User>  findInfo( Page<User> page,  @Param(Constants.WRAPPER) Wrapper<User> user);
   Integer yonghuLogin(String username);

    int insertUserByRole(Map map);
    int updataPassword(Map map);
    String selectSalt(String id);

}
